import Layout from '@/layout'

export default {
  path: '/shopmanage',
  component: Layout,
  redirect: '/shopmanage/shoplist',
  name: 'ShopManage',
  meta: { title: '商品管理', icon: 'el-icon-s-goods' },
  children: [
    {
      path: 'shoplist',
      name: 'ShopList',
      component: () => import('@/views/Shop/ShopList'),
      meta: { title: '商品列表', icon: 'el-icon-menu' }
    },
    {
      path: 'classify',
      name: 'ClassifyList',
      component: () => import('@/views/Shop/ClassifyList'),
      meta: { title: '分类列表', icon: 'el-icon-menu' }
    },
    {
      path: 'shopclassify',
      name: 'ShopClassify',
      component: () => import('@/views/Shop/ShopClassify'),
      meta: { title: '商品分类', icon: 'el-icon-menu' }
    },
    {
      path: 'shoplist/addshop',
      name: 'AddShop',
      component: () => import('@/views/Shop/AddShop'),
      meta: { title: '添加商品', icon: 'el-icon-menu' },
      hidden: true
    }
  ]
}
